{% extends 'demo/base.html' %}
{% load common_extras %}
{% load static %}
{% block link %}
    <link rel="stylesheet" href="{% static 'css/demo/article_detail.css' %}">
{% endblock %}
{% block title %}
    {{ article.title }}
{% endblock %}
{% block header %}
    {% include 'demo/header.html' %}
{% endblock %}
{% block main %}
    <div class="content">
        <div>
            <div class="left-box">用户信息</div>
            <div class="right-box">
                <div class="info">
                    <h1>{{ article.title }}</h1>
                    <div class="tags">
                        <div>
                            <span>作者:{{ article.user.username }}</span>
                            <span>发布时间:{{ article.create_time }}</span>
                            {% if article.label %}
                                <span>文章标签:</span>
                            {% endif %}
                            {% for label in labels %}
                                <span class="tag">{{ label.name }}</span>
                            {% endfor %}
                        </div>
                    </div>
                </div>
                <div class="article">
                    {{ article.content }}
                </div>
            </div>
        </div>
    </div>
{% endblock %}